package study.JavaBase;

/**
 * date:2025.11.4
 * author:fzy
 * title:system类
 */
public class Java_27 {
    public static void main(String[] arg){
        //终止当前运行的java虚拟机，非0表示异常终止
//        System.exit(0);
//        System.out.println("运行1");
        Long startTime = System.currentTimeMillis();
        for (int i =0; i <100000;i++){
            System.out.println(i);
        }
        Long endTime = System.currentTimeMillis();
        System.out.println("花费了"+(endTime - startTime)+"ms");
    }
}
